
function colorswitch() {
	document.getElementById('submit').style.backgroundColor = '#00DB04';
	document.getElementById('submit').style.color = '#000';
	document.getElementById('submit').value = 'Eingetragen';
}

function colorReset() {
	document.getElementById('submit').style.backgroundColor = '#c50a1f';
	document.getElementById('submit').style.color = '#fff';
	document.getElementById('submit').value = 'Eintragen';
}


function change(vname, nname, beschr, date, mail, force, lists)
{
	document.getElementById('vorname').value=vname;
	document.getElementById('nachname').value=nname;
	document.getElementById('content').value=beschr;
	document.getElementById('day').value=date;		
	document.getElementById('email').value=mail;
	document.getElementById('force').value=force;
	document.getElementById('newMember').submit();			
	for (var i=0;i<lists.length;i++)
	{
		document.getElementById('list_'+lists[i]).checked=true;
	}
}

function showUserInfo() 
{
	document.getElementById('userInfo').style.display='inline';
	document.getElementById('userInfoLegend').style.display='inline';
}
